{% url 'index' as index_url %}
{% url 'user_list' as user_list_url %}
{% url 'group_list' as group_list_url %}
{% url 'permission_list' as permission_list_url %}

<ul class="nav nav-sidebar">
    <li {% if request.path == index_url %} class="active" {% endif %}  ><a href="{{ index_url }}">首页<span class="sr-only">(current)</span></a></li>
    <li {% if request.path == user_list_url %} class="active" {% endif %}  ><a href="{{ user_list_url }}">用户管理 </a></li>
    <li {% if request.path == group_list_url %} class="active" {% endif %}  ><a href="{{ group_list_url }}">组管理</a></li>
    <li {% if request.path == permission_list_url %} class="active" {% endif %}  ><a href="{{ permission_list_url }}">权限管理</a></li>
</ul>

<!--
<ul class="nav nav-sidebar">
    <li><a href="">Nav item</a></li>
    <li><a href="">Nav item again</a></li>
    <li><a href="">One more nav</a></li>
    <li><a href="">Another nav item</a></li>
    <li><a href="">More navigation</a></li>
</ul>
<ul class="nav nav-sidebar">
    <li><a href="">Nav item again</a></li>
    <li><a href="">One more nav</a></li>
    <li><a href="">Another nav item</a></li>
</ul>
-->